﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonWithEvent
{
    public class PropertyChangedEventArgs
    {
        private string property;
        private Object oldValue;
        private Object newValue;

        public string Property
        {
            get
            {
                return property;
            }
        }

        public object OldValue
        {
            get
            {
                return oldValue;
            }
        }

        public object NewValue
        {
            get
            {
                return newValue;
            }
        }

        public PropertyChangedEventArgs(string property, Object oldValue, Object newValue)
        {
            this.property = property;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }
    }
}
